<?php
/**
 * Created By Project
 * Author: 陈东
 * Copyright：陈东
 * Source Code：陈东
 * Explain：I shall not authorize for any other commercial purposes, law breakers must be prosecuted.
 */
namespace Admin\Widget;
use Think\Controller;
class PlateWidget extends Controller {

	/**
	 * 根据版块ID获取子版块数量
	 */
	public function get_subpalte_num($plateid = null){
		$plate = D(C('TABLE_PLATEMANAGES'));
		$num = $plate->where(array('mid' => $plateid))->count();
		if($num > 0) echo "<b class=\"subplate_num\">$num</b>";
	}
    
}
?>